"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (g && (g = 0, op[0] && (_ = 0)), _) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_1 = require("vue");
var PictureUpload_vue_1 = __importDefault(require("../components/PictureUpload.vue"));
var UrlPictureUpload_vue_1 = __importDefault(require("../components/UrlPictureUpload.vue"));
var icons_vue_1 = require("@ant-design/icons-vue");
var ant_design_vue_1 = require("ant-design-vue");
var vue_router_1 = require("vue-router");
var pictureController_1 = require("../api/pictureController");
var ImageCropper_vue_1 = __importDefault(require("../components/ImageCropper.vue"));
var router = (0, vue_router_1.useRouter)();
var route = (0, vue_router_1.useRoute)();
var uploadType = (0, vue_1.ref)('file');
var picture = (0, vue_1.ref)();
var onSuccess = function (newPicture) {
    picture.value = newPicture;
    pictureForm.name = newPicture.name;
};
var pictureForm = (0, vue_1.reactive)({});
// 分类和标签选项数据
var categoryOptions = (0, vue_1.ref)([]);
var tagOptions = (0, vue_1.ref)([]);
// 空间 id
var spaceId = (0, vue_1.computed)(function () {
    var _a;
    return (_a = route.query) === null || _a === void 0 ? void 0 : _a.spaceId;
});
// 表单提交处理函数
var handleSubmit = function (values) { return __awaiter(void 0, void 0, void 0, function () {
    var pictureId, res;
    return __generator(this, function (_a) {
        switch (_a.label) {
            case 0:
                pictureId = picture.value.id;
                if (!pictureId) {
                    return [2 /*return*/];
                }
                return [4 /*yield*/, (0, pictureController_1.editPictureUsingPost)(__assign({ id: pictureId, spaceId: spaceId.value }, values))];
            case 1:
                res = _a.sent();
                if (res.data.code === 0 && res.data.data) {
                    ant_design_vue_1.message.success('创建成功');
                    // 跳转到图片详情页
                    router.push({
                        path: "/picture/".concat(pictureId),
                        // meta: { id:pictureId }
                    });
                }
                else {
                    ant_design_vue_1.message.error('创建失败' + res.data.message);
                }
                return [2 /*return*/];
        }
    });
}); };
// 向后端获取标签和分类选项
var getTagCategoryOptions = function () { return __awaiter(void 0, void 0, void 0, function () {
    var res;
    var _a, _b;
    return __generator(this, function (_c) {
        switch (_c.label) {
            case 0: return [4 /*yield*/, (0, pictureController_1.listPictureTagCategoryUsingGet)()];
            case 1:
                res = _c.sent();
                if (res.data.code === 0 && res.data.data) {
                    // 转换成下拉选项组件接受的格式
                    tagOptions.value = ((_a = res.data.data.tagList) !== null && _a !== void 0 ? _a : []).map(function (data) {
                        return {
                            value: data,
                            label: data,
                        };
                    });
                    categoryOptions.value = ((_b = res.data.data.categoryList) !== null && _b !== void 0 ? _b : []).map(function (data) {
                        return {
                            value: data,
                            label: data,
                        };
                    });
                }
                else {
                    ant_design_vue_1.message.error('加载选项失败,' + res.data.message);
                }
                return [2 /*return*/];
        }
    });
}); };
(0, vue_1.onMounted)(function () {
    getTagCategoryOptions();
});
(0, vue_1.onMounted)(function () {
    getOldPicture();
});
// 获取老数据  
var getOldPicture = function () { return __awaiter(void 0, void 0, void 0, function () {
    var id, res, data;
    var _a;
    return __generator(this, function (_b) {
        switch (_b.label) {
            case 0:
                id = (_a = route.query) === null || _a === void 0 ? void 0 : _a.id;
                if (!id) return [3 /*break*/, 2];
                return [4 /*yield*/, (0, pictureController_1.getPictureVoByIdUsingGet)({
                        id: id,
                    })];
            case 1:
                res = _b.sent();
                if (res.data.code === 0 && res.data.data) {
                    data = res.data.data;
                    picture.value = data;
                    pictureForm.name = data.name;
                    pictureForm.introduction = data.introduction;
                    pictureForm.category = data.category;
                    pictureForm.tags = data.tags;
                }
                _b.label = 2;
            case 2: return [2 /*return*/];
        }
    });
}); };
// 图片编辑弹窗引用
var imageCropperRef = (0, vue_1.ref)();
// 编辑图片
var doEditPicture = function () {
    if (imageCropperRef.value) {
        imageCropperRef.value.openModal();
    }
};
// 编辑成功事件
var onCropSuccess = function (newPicture) {
    picture.value = newPicture;
}; /* PartiallyEnd: #3632/scriptSetup.vue */
function __VLS_template() {
    var _a, _b, _c;
    var __VLS_ctx = {};
    var __VLS_components;
    var __VLS_directives;
    // CSS variable injection 
    // CSS variable injection end 
    __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
        id: ("addPicturePage"),
    });
    __VLS_elementAsFunction(__VLS_intrinsicElements.h2, __VLS_intrinsicElements.h2)(__assign({ style: ({}) }));
    (((_a = __VLS_ctx.route.query) === null || _a === void 0 ? void 0 : _a.id) ? '修改图片' : '创建图片');
    if (__VLS_ctx.spaceId) {
        var __VLS_0 = {}.ATypographyParagraph;
        /** @type { [typeof __VLS_components.ATypographyParagraph, typeof __VLS_components.aTypographyParagraph, typeof __VLS_components.ATypographyParagraph, typeof __VLS_components.aTypographyParagraph, ] } */ ;
        // @ts-ignore
        var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
            type: ("secondary"),
        }));
        var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([{
                type: ("secondary"),
            }], __VLS_functionalComponentArgsRest(__VLS_1), false));
        __VLS_elementAsFunction(__VLS_intrinsicElements.a, __VLS_intrinsicElements.a)({
            href: (("/space/".concat(__VLS_ctx.spaceId))),
            target: ("_blank"),
        });
        (__VLS_ctx.spaceId);
        __VLS_5.slots.default;
        var __VLS_5;
    }
    var __VLS_6 = {}.ATabs;
    /** @type { [typeof __VLS_components.ATabs, typeof __VLS_components.aTabs, typeof __VLS_components.ATabs, typeof __VLS_components.aTabs, ] } */ ;
    // @ts-ignore
    var __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
        activeKey: ((__VLS_ctx.uploadType)),
    }));
    var __VLS_8 = __VLS_7.apply(void 0, __spreadArray([{
            activeKey: ((__VLS_ctx.uploadType)),
        }], __VLS_functionalComponentArgsRest(__VLS_7), false));
    var __VLS_12 = {}.ATabPane;
    /** @type { [typeof __VLS_components.ATabPane, typeof __VLS_components.aTabPane, typeof __VLS_components.ATabPane, typeof __VLS_components.aTabPane, ] } */ ;
    // @ts-ignore
    var __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
        key: ("file"),
        tab: ("文件上传"),
    }));
    var __VLS_14 = __VLS_13.apply(void 0, __spreadArray([{
            key: ("file"),
            tab: ("文件上传"),
        }], __VLS_functionalComponentArgsRest(__VLS_13), false));
    // @ts-ignore
    /** @type { [typeof PictureUpload, ] } */ ;
    // @ts-ignore
    var __VLS_18 = __VLS_asFunctionalComponent(PictureUpload_vue_1.default, new PictureUpload_vue_1.default({
        picture: ((__VLS_ctx.picture)),
        onSuccess: ((__VLS_ctx.onSuccess)),
    }));
    var __VLS_19 = __VLS_18.apply(void 0, __spreadArray([{
            picture: ((__VLS_ctx.picture)),
            onSuccess: ((__VLS_ctx.onSuccess)),
        }], __VLS_functionalComponentArgsRest(__VLS_18), false));
    __VLS_17.slots.default;
    var __VLS_17;
    var __VLS_23 = {}.ATabPane;
    /** @type { [typeof __VLS_components.ATabPane, typeof __VLS_components.aTabPane, typeof __VLS_components.ATabPane, typeof __VLS_components.aTabPane, ] } */ ;
    // @ts-ignore
    var __VLS_24 = __VLS_asFunctionalComponent(__VLS_23, new __VLS_23({
        key: ("url"),
        tab: ("URL 上传"),
        forceRender: (true),
    }));
    var __VLS_25 = __VLS_24.apply(void 0, __spreadArray([{
            key: ("url"),
            tab: ("URL 上传"),
            forceRender: (true),
        }], __VLS_functionalComponentArgsRest(__VLS_24), false));
    // @ts-ignore
    /** @type { [typeof UrlPictureUpload, ] } */ ;
    // @ts-ignore
    var __VLS_29 = __VLS_asFunctionalComponent(UrlPictureUpload_vue_1.default, new UrlPictureUpload_vue_1.default({
        picture: ((__VLS_ctx.picture)),
        onSuccess: ((__VLS_ctx.onSuccess)),
    }));
    var __VLS_30 = __VLS_29.apply(void 0, __spreadArray([{
            picture: ((__VLS_ctx.picture)),
            onSuccess: ((__VLS_ctx.onSuccess)),
        }], __VLS_functionalComponentArgsRest(__VLS_29), false));
    __VLS_28.slots.default;
    var __VLS_28;
    __VLS_11.slots.default;
    var __VLS_11;
    if (__VLS_ctx.picture) {
        __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)(__assign({ class: ("edit-bar") }));
        var __VLS_34 = {}.AButton;
        /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
        // @ts-ignore
        var __VLS_35 = __VLS_asFunctionalComponent(__VLS_34, new __VLS_34(__assign({ 'onClick': {} }, { icon: ((__VLS_ctx.h(__VLS_ctx.EditOutlined))) })));
        var __VLS_36 = __VLS_35.apply(void 0, __spreadArray([__assign({ 'onClick': {} }, { icon: ((__VLS_ctx.h(__VLS_ctx.EditOutlined))) })], __VLS_functionalComponentArgsRest(__VLS_35), false));
        var __VLS_40 = void 0;
        var __VLS_41 = {
            onClick: (__VLS_ctx.doEditPicture)
        };
        var __VLS_37 = void 0;
        var __VLS_38 = void 0;
        __VLS_39.slots.default;
        var __VLS_39;
        // @ts-ignore
        /** @type { [typeof ImageCropper, ] } */ ;
        // @ts-ignore
        var __VLS_42 = __VLS_asFunctionalComponent(ImageCropper_vue_1.default, new ImageCropper_vue_1.default({
            ref: ("imageCropperRef"),
            imageUrl: (((_b = __VLS_ctx.picture) === null || _b === void 0 ? void 0 : _b.url)),
            picture: ((__VLS_ctx.picture)),
            spaceId: ((__VLS_ctx.spaceId)),
            onSuccess: ((__VLS_ctx.onSuccess)),
        }));
        var __VLS_43 = __VLS_42.apply(void 0, __spreadArray([{
                ref: ("imageCropperRef"),
                imageUrl: (((_c = __VLS_ctx.picture) === null || _c === void 0 ? void 0 : _c.url)),
                picture: ((__VLS_ctx.picture)),
                spaceId: ((__VLS_ctx.spaceId)),
                onSuccess: ((__VLS_ctx.onSuccess)),
            }], __VLS_functionalComponentArgsRest(__VLS_42), false));
        // @ts-ignore navigation for `const imageCropperRef = ref()`
        /** @type { typeof __VLS_ctx.imageCropperRef } */ ;
        var __VLS_47 = {};
        var __VLS_46;
    }
    if (__VLS_ctx.picture) {
        var __VLS_48 = {}.AForm;
        /** @type { [typeof __VLS_components.AForm, typeof __VLS_components.aForm, typeof __VLS_components.AForm, typeof __VLS_components.aForm, ] } */ ;
        // @ts-ignore
        var __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48(__assign({ 'onFinish': {} }, { name: ("pictureForm"), layout: ("vertical"), model: ((__VLS_ctx.pictureForm)) })));
        var __VLS_50 = __VLS_49.apply(void 0, __spreadArray([__assign({ 'onFinish': {} }, { name: ("pictureForm"), layout: ("vertical"), model: ((__VLS_ctx.pictureForm)) })], __VLS_functionalComponentArgsRest(__VLS_49), false));
        var __VLS_54 = void 0;
        var __VLS_55 = {
            onFinish: (__VLS_ctx.handleSubmit)
        };
        var __VLS_51 = void 0;
        var __VLS_52 = void 0;
        var __VLS_56 = {}.AFormItem;
        /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
        // @ts-ignore
        var __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({
            name: ("name"),
            label: ("名称"),
        }));
        var __VLS_58 = __VLS_57.apply(void 0, __spreadArray([{
                name: ("name"),
                label: ("名称"),
            }], __VLS_functionalComponentArgsRest(__VLS_57), false));
        var __VLS_62 = {}.AInput;
        /** @type { [typeof __VLS_components.AInput, typeof __VLS_components.aInput, ] } */ ;
        // @ts-ignore
        var __VLS_63 = __VLS_asFunctionalComponent(__VLS_62, new __VLS_62({
            value: ((__VLS_ctx.pictureForm.name)),
            placeholder: ("请输入名称"),
            allowClear: (true),
        }));
        var __VLS_64 = __VLS_63.apply(void 0, __spreadArray([{
                value: ((__VLS_ctx.pictureForm.name)),
                placeholder: ("请输入名称"),
                allowClear: (true),
            }], __VLS_functionalComponentArgsRest(__VLS_63), false));
        __VLS_61.slots.default;
        var __VLS_61;
        var __VLS_68 = {}.AFormItem;
        /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
        // @ts-ignore
        var __VLS_69 = __VLS_asFunctionalComponent(__VLS_68, new __VLS_68({
            name: ("introduction"),
            label: ("简介"),
        }));
        var __VLS_70 = __VLS_69.apply(void 0, __spreadArray([{
                name: ("introduction"),
                label: ("简介"),
            }], __VLS_functionalComponentArgsRest(__VLS_69), false));
        var __VLS_74 = {}.ATextarea;
        /** @type { [typeof __VLS_components.ATextarea, typeof __VLS_components.aTextarea, ] } */ ;
        // @ts-ignore
        var __VLS_75 = __VLS_asFunctionalComponent(__VLS_74, new __VLS_74({
            value: ((__VLS_ctx.pictureForm.introduction)),
            placeholder: ("请输入简介"),
            autoSize: (({ minRows: 2, maxRows: 5 })),
            allowClear: (true),
        }));
        var __VLS_76 = __VLS_75.apply(void 0, __spreadArray([{
                value: ((__VLS_ctx.pictureForm.introduction)),
                placeholder: ("请输入简介"),
                autoSize: (({ minRows: 2, maxRows: 5 })),
                allowClear: (true),
            }], __VLS_functionalComponentArgsRest(__VLS_75), false));
        __VLS_73.slots.default;
        var __VLS_73;
        var __VLS_80 = {}.AFormItem;
        /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
        // @ts-ignore
        var __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80({
            name: ("category"),
            label: ("分类"),
        }));
        var __VLS_82 = __VLS_81.apply(void 0, __spreadArray([{
                name: ("category"),
                label: ("分类"),
            }], __VLS_functionalComponentArgsRest(__VLS_81), false));
        var __VLS_86 = {}.AAutoComplete;
        /** @type { [typeof __VLS_components.AAutoComplete, typeof __VLS_components.aAutoComplete, ] } */ ;
        // @ts-ignore
        var __VLS_87 = __VLS_asFunctionalComponent(__VLS_86, new __VLS_86({
            value: ((__VLS_ctx.pictureForm.category)),
            placeholder: ("请输入分类"),
            options: ((__VLS_ctx.categoryOptions)),
            allowClear: (true),
        }));
        var __VLS_88 = __VLS_87.apply(void 0, __spreadArray([{
                value: ((__VLS_ctx.pictureForm.category)),
                placeholder: ("请输入分类"),
                options: ((__VLS_ctx.categoryOptions)),
                allowClear: (true),
            }], __VLS_functionalComponentArgsRest(__VLS_87), false));
        __VLS_85.slots.default;
        var __VLS_85;
        var __VLS_92 = {}.AFormItem;
        /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
        // @ts-ignore
        var __VLS_93 = __VLS_asFunctionalComponent(__VLS_92, new __VLS_92({
            name: ("tags"),
            label: ("标签"),
        }));
        var __VLS_94 = __VLS_93.apply(void 0, __spreadArray([{
                name: ("tags"),
                label: ("标签"),
            }], __VLS_functionalComponentArgsRest(__VLS_93), false));
        var __VLS_98 = {}.ASelect;
        /** @type { [typeof __VLS_components.ASelect, typeof __VLS_components.aSelect, ] } */ ;
        // @ts-ignore
        var __VLS_99 = __VLS_asFunctionalComponent(__VLS_98, new __VLS_98({
            value: ((__VLS_ctx.pictureForm.tags)),
            mode: ("tags"),
            placeholder: ("请输入标签"),
            options: ((__VLS_ctx.tagOptions)),
            allowClear: (true),
        }));
        var __VLS_100 = __VLS_99.apply(void 0, __spreadArray([{
                value: ((__VLS_ctx.pictureForm.tags)),
                mode: ("tags"),
                placeholder: ("请输入标签"),
                options: ((__VLS_ctx.tagOptions)),
                allowClear: (true),
            }], __VLS_functionalComponentArgsRest(__VLS_99), false));
        __VLS_97.slots.default;
        var __VLS_97;
        var __VLS_104 = {}.AFormItem;
        /** @type { [typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, typeof __VLS_components.AFormItem, typeof __VLS_components.aFormItem, ] } */ ;
        // @ts-ignore
        var __VLS_105 = __VLS_asFunctionalComponent(__VLS_104, new __VLS_104({}));
        var __VLS_106 = __VLS_105.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_105), false));
        var __VLS_110 = {}.AButton;
        /** @type { [typeof __VLS_components.AButton, typeof __VLS_components.aButton, typeof __VLS_components.AButton, typeof __VLS_components.aButton, ] } */ ;
        // @ts-ignore
        var __VLS_111 = __VLS_asFunctionalComponent(__VLS_110, new __VLS_110(__assign({ type: ("primary"), htmlType: ("submit") }, { style: ({}) })));
        var __VLS_112 = __VLS_111.apply(void 0, __spreadArray([__assign({ type: ("primary"), htmlType: ("submit") }, { style: ({}) })], __VLS_functionalComponentArgsRest(__VLS_111), false));
        __VLS_115.slots.default;
        var __VLS_115;
        __VLS_109.slots.default;
        var __VLS_109;
        __VLS_53.slots.default;
        var __VLS_53;
    }
    ['edit-bar',];
    var __VLS_slots;
    var $slots;
    var __VLS_inheritedAttrs;
    var $attrs;
    var __VLS_refs = {
        'imageCropperRef': __VLS_47,
    };
    var $refs;
    var $el;
    return {
        attrs: {},
        slots: __VLS_slots,
        refs: $refs,
        rootEl: $el,
    };
}
;
var __VLS_self = (await Promise.resolve().then(function () { return __importStar(require('vue')); })).defineComponent({
    setup: function () {
        return {
            h: vue_1.h,
            PictureUpload: PictureUpload_vue_1.default,
            UrlPictureUpload: UrlPictureUpload_vue_1.default,
            EditOutlined: icons_vue_1.EditOutlined,
            ImageCropper: ImageCropper_vue_1.default,
            route: route,
            uploadType: uploadType,
            picture: picture,
            onSuccess: onSuccess,
            pictureForm: pictureForm,
            categoryOptions: categoryOptions,
            tagOptions: tagOptions,
            spaceId: spaceId,
            handleSubmit: handleSubmit,
            imageCropperRef: imageCropperRef,
            doEditPicture: doEditPicture,
        };
    },
});
exports.default = (await Promise.resolve().then(function () { return __importStar(require('vue')); })).defineComponent({
    setup: function () {
        return {};
    },
    __typeRefs: {},
});
; /* PartiallyEnd: #4569/main.vue */
